package cn.yj.frame.proxy;

import java.lang.reflect.Proxy;

/**
 * 代理对象生成
 * @author 永健
 * @since 2022-01-18 17:11
 */
public class RpcReferenceProxyFactory {
    public static Object createProxy(Class<?> aClass,String beanName){
       return Proxy.newProxyInstance(aClass.getClassLoader(),new Class[]{aClass},new RpcReferenceProxy(aClass,beanName));
    }
}
